Optimal. Leaf size=98 \[ \frac {a^3 \sinh (c+d x)}{d}+\frac {a^2 (a+3 b) \sinh ^3(c+d x)}{3 d}+\frac {3 a b (a+b) \sinh ^5(c+d x)}{5 d}+\frac {b^2 (3 a+b) \sinh ^7(c+d x)}{7 d}+\frac {b^3 \sinh ^9(c+d x)}{9 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {3269, 380}
\begin {gather*} \frac {a^3 \sinh (c+d x)}{d}+\frac {a^2 (a+3 b) \sinh ^3(c+d x)}{3 d}+\frac {b^2 (3 a+b) \sinh ^7(c+d x)}{7 d}+\frac {3 a b (a+b) \sinh ^5(c+d x)}{5 d}+\frac {b^3 \sinh ^9(c+d x)}{9 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 380
Rule 3269
Rubi steps
\begin {align*} \int \cosh ^3(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac {\text {Subst}\left (\int \left (1+x^2\right ) \left (a+b x^2\right )^3 \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (a^3+a^2 (a+3 b) x^2+3 a b (a+b) x^4+b^2 (3 a+b) x^6+b^3 x^8\right ) \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {a^3 \sinh (c+d x)}{d}+\frac {a^2 (a+3 b) \sinh ^3(c+d x)}{3 d}+\frac {3 a b (a+b) \sinh ^5(c+d x)}{5 d}+\frac {b^2 (3 a+b) \sinh ^7(c+d x)}{7 d}+\frac {b^3 \sinh ^9(c+d x)}{9 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.41, size = 125, normalized size = 1.28 \begin {gather*} \frac {1890 \left (32 a^3-16 a^2 b+6 a b^2-b^3\right ) \sinh (c+d x)+420 \left (16 a^3+12 a^2 b-9 a b^2+2 b^3\right ) \sinh (3 (c+d x))+b (756 a (4 a-b) \sinh (5 (c+d x))+5 b (27 (4 a-b) \sinh (7 (c+d x))+7 b \sinh (9 (c+d x))))}{80640 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.20, size = 142, normalized size = 1.45
method | result | size |
default | \(\frac {\left (-\frac {3}{256} b^{3}+\frac {3}{64} a \,b^{2}\right ) \sinh \left (7 d x +7 c \right )}{7 d}+\frac {\left (-\frac {3}{64} a \,b^{2}+\frac {3}{16} a^{2} b \right ) \sinh \left (5 d x +5 c \right )}{5 d}+\frac {\left (-\frac {3}{128} b^{3}+\frac {9}{64} a \,b^{2}-\frac {3}{8} a^{2} b +\frac {3}{4} a^{3}\right ) \sinh \left (d x +c \right )}{d}+\frac {\left (\frac {1}{32} b^{3}-\frac {9}{64} a \,b^{2}+\frac {3}{16} a^{2} b +\frac {1}{4} a^{3}\right ) \sinh \left (3 d x +3 c \right )}{3 d}+\frac {b^{3} \sinh \left (9 d x +9 c \right )}{2304 d}\) | \(142\) |
risch | \(-\frac {3 a \,b^{2} {\mathrm e}^{5 d x +5 c}}{640 d}-\frac {3 a \,b^{2} {\mathrm e}^{3 d x +3 c}}{128 d}-\frac {3 b \,{\mathrm e}^{d x +c} a^{2}}{16 d}+\frac {b^{3} {\mathrm e}^{9 d x +9 c}}{4608 d}+\frac {{\mathrm e}^{3 d x +3 c} a^{3}}{24 d}+\frac {{\mathrm e}^{3 d x +3 c} b^{3}}{192 d}+\frac {3 a^{3} {\mathrm e}^{d x +c}}{8 d}-\frac {b^{3} {\mathrm e}^{-9 d x -9 c}}{4608 d}-\frac {9 a \,{\mathrm e}^{-d x -c} b^{2}}{128 d}+\frac {3 a \,b^{2} {\mathrm e}^{-3 d x -3 c}}{128 d}-\frac {3 b^{3} {\mathrm e}^{d x +c}}{256 d}+\frac {3 b^{3} {\mathrm e}^{-d x -c}}{256 d}-\frac {b^{3} {\mathrm e}^{-3 d x -3 c}}{192 d}-\frac {3 b^{3} {\mathrm e}^{7 d x +7 c}}{3584 d}+\frac {3 a \,b^{2} {\mathrm e}^{-5 d x -5 c}}{640 d}-\frac {3 \,{\mathrm e}^{-d x -c} a^{3}}{8 d}-\frac {{\mathrm e}^{-3 d x -3 c} a^{3}}{24 d}+\frac {3 b^{3} {\mathrm e}^{-7 d x -7 c}}{3584 d}+\frac {9 a \,{\mathrm e}^{d x +c} b^{2}}{128 d}+\frac {3 \,{\mathrm e}^{-d x -c} a^{2} b}{16 d}-\frac {{\mathrm e}^{-3 d x -3 c} a^{2} b}{32 d}-\frac {3 \,{\mathrm e}^{-5 d x -5 c} a^{2} b}{160 d}+\frac {3 b^{2} {\mathrm e}^{7 d x +7 c} a}{896 d}+\frac {3 \,{\mathrm e}^{5 d x +5 c} a^{2} b}{160 d}-\frac {3 b^{2} {\mathrm e}^{-7 d x -7 c} a}{896 d}+\frac {{\mathrm e}^{3 d x +3 c} a^{2} b}{32 d}\) | \(446\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 349 vs.
\(2 (90) = 180\).
time = 0.27, size = 349, normalized size = 3.56 \begin {gather*} -\frac {1}{32256} \, b^{3} {\left (\frac {{\left (27 \, e^{\left (-2 \, d x - 2 \, c\right )} - 168 \, e^{\left (-6 \, d x - 6 \, c\right )} + 378 \, e^{\left (-8 \, d x - 8 \, c\right )} - 7\right )} e^{\left (9 \, d x + 9 \, c\right )}}{d} - \frac {378 \, e^{\left (-d x - c\right )} - 168 \, e^{\left (-3 \, d x - 3 \, c\right )} + 27 \, e^{\left (-7 \, d x - 7 \, c\right )} - 7 \, e^{\left (-9 \, d x - 9 \, c\right )}}{d}\right )} - \frac {3}{4480} \, a b^{2} {\left (\frac {{\left (7 \, e^{\left (-2 \, d x - 2 \, c\right )} + 35 \, e^{\left (-4 \, d x - 4 \, c\right )} - 105 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5\right )} e^{\left (7 \, d x + 7 \, c\right )}}{d} + \frac {105 \, e^{\left (-d x - c\right )} - 35 \, e^{\left (-3 \, d x - 3 \, c\right )} - 7 \, e^{\left (-5 \, d x - 5 \, c\right )} + 5 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d}\right )} + \frac {1}{160} \, a^{2} b {\left (\frac {{\left (5 \, e^{\left (-2 \, d x - 2 \, c\right )} - 30 \, e^{\left (-4 \, d x - 4 \, c\right )} + 3\right )} e^{\left (5 \, d x + 5 \, c\right )}}{d} + \frac {30 \, e^{\left (-d x - c\right )} - 5 \, e^{\left (-3 \, d x - 3 \, c\right )} - 3 \, e^{\left (-5 \, d x - 5 \, c\right )}}{d}\right )} + \frac {1}{24} \, a^{3} {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} + \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} - \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 324 vs.
\(2 (90) = 180\).
time = 0.38, size = 324, normalized size = 3.31 \begin {gather*} \frac {35 \, b^{3} \sinh \left (d x + c\right )^{9} + 45 \, {\left (28 \, b^{3} \cosh \left (d x + c\right )^{2} + 12 \, a b^{2} - 3 \, b^{3}\right )} \sinh \left (d x + c\right )^{7} + 63 \, {\left (70 \, b^{3} \cosh \left (d x + c\right )^{4} + 48 \, a^{2} b - 12 \, a b^{2} + 45 \, {\left (4 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{5} + 105 \, {\left (28 \, b^{3} \cosh \left (d x + c\right )^{6} + 45 \, {\left (4 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{4} + 64 \, a^{3} + 48 \, a^{2} b - 36 \, a b^{2} + 8 \, b^{3} + 72 \, {\left (4 \, a^{2} b - a b^{2}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{3} + 315 \, {\left (b^{3} \cosh \left (d x + c\right )^{8} + 3 \, {\left (4 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{6} + 12 \, {\left (4 \, a^{2} b - a b^{2}\right )} \cosh \left (d x + c\right )^{4} + 192 \, a^{3} - 96 \, a^{2} b + 36 \, a b^{2} - 6 \, b^{3} + 4 \, {\left (16 \, a^{3} + 12 \, a^{2} b - 9 \, a b^{2} + 2 \, b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )}{80640 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 182 vs.
\(2 (87) = 174\).
time = 1.38, size = 182, normalized size = 1.86 \begin {gather*} \begin {cases} - \frac {2 a^{3} \sinh ^{3}{\left (c + d x \right )}}{3 d} + \frac {a^{3} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{d} - \frac {2 a^{2} b \sinh ^{5}{\left (c + d x \right )}}{5 d} + \frac {a^{2} b \sinh ^{3}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{d} - \frac {6 a b^{2} \sinh ^{7}{\left (c + d x \right )}}{35 d} + \frac {3 a b^{2} \sinh ^{5}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{5 d} - \frac {2 b^{3} \sinh ^{9}{\left (c + d x \right )}}{63 d} + \frac {b^{3} \sinh ^{7}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{7 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{2}{\left (c \right )}\right )^{3} \cosh ^{3}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 286 vs.
\(2 (90) = 180\).
time = 0.46, size = 286, normalized size = 2.92 \begin {gather*} \frac {b^{3} e^{\left (9 \, d x + 9 \, c\right )}}{4608 \, d} - \frac {b^{3} e^{\left (-9 \, d x - 9 \, c\right )}}{4608 \, d} + \frac {3 \, {\left (4 \, a b^{2} - b^{3}\right )} e^{\left (7 \, d x + 7 \, c\right )}}{3584 \, d} + \frac {3 \, {\left (4 \, a^{2} b - a b^{2}\right )} e^{\left (5 \, d x + 5 \, c\right )}}{640 \, d} + \frac {{\left (16 \, a^{3} + 12 \, a^{2} b - 9 \, a b^{2} + 2 \, b^{3}\right )} e^{\left (3 \, d x + 3 \, c\right )}}{384 \, d} + \frac {3 \, {\left (32 \, a^{3} - 16 \, a^{2} b + 6 \, a b^{2} - b^{3}\right )} e^{\left (d x + c\right )}}{256 \, d} - \frac {3 \, {\left (32 \, a^{3} - 16 \, a^{2} b + 6 \, a b^{2} - b^{3}\right )} e^{\left (-d x - c\right )}}{256 \, d} - \frac {{\left (16 \, a^{3} + 12 \, a^{2} b - 9 \, a b^{2} + 2 \, b^{3}\right )} e^{\left (-3 \, d x - 3 \, c\right )}}{384 \, d} - \frac {3 \, {\left (4 \, a^{2} b - a b^{2}\right )} e^{\left (-5 \, d x - 5 \, c\right )}}{640 \, d} - \frac {3 \, {\left (4 \, a b^{2} - b^{3}\right )} e^{\left (-7 \, d x - 7 \, c\right )}}{3584 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.29, size = 112, normalized size = 1.14 \begin {gather*} \frac {105\,a^3\,{\mathrm {sinh}\left (c+d\,x\right )}^3+315\,a^3\,\mathrm {sinh}\left (c+d\,x\right )+189\,a^2\,b\,{\mathrm {sinh}\left (c+d\,x\right )}^5+315\,a^2\,b\,{\mathrm {sinh}\left (c+d\,x\right )}^3+135\,a\,b^2\,{\mathrm {sinh}\left (c+d\,x\right )}^7+189\,a\,b^2\,{\mathrm {sinh}\left (c+d\,x\right )}^5+35\,b^3\,{\mathrm {sinh}\left (c+d\,x\right )}^9+45\,b^3\,{\mathrm {sinh}\left (c+d\,x\right )}^7}{315\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________